package com.blb.order_service.entity;

/**
 * 订单
 */
public class Order {

    private Long id;
    private Long userId;
    private String time;
    private Long goodsId;
    private Goods goods;

    public Order(Long id, Long userId, String time, Long goodsId) {
        this.id = id;
        this.userId = userId;
        this.time = time;
        this.goodsId = goodsId;
    }

    public Order() {
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", time='" + time + '\'' +
                ", goods=" + goods +
                '}';
    }
}
